//
//  Car.m
//  设计模式
//
//  Created by huyang on 2020/7/1.
//  Copyright © 2020 test. All rights reserved.
//

#import "Car.h"

@implementation Car


- (NSString *)color
{
    NSArray *colorArr = @[@"红色",@"白色",@"黑色",@"蓝色",@"黄色",@"粉色",@"绿色",@"彩色"];
    return colorArr[(arc4random() % colorArr.count)];
}

-(NSString *)wengWengWengID
{
    NSString *tmp = @"";
    for (NSInteger i = 0; i < 9; i ++) {
        NSInteger romNum = (arc4random() % 10);
        NSString *str = @(romNum).stringValue;
        tmp = [tmp stringByAppendingString:str];
    }
    return tmp;
}

- (NSString *)getCar
{
    return nil;
}


@end
